package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * WeatherList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "weather_list", catalog = "imcdbserver", uniqueConstraints = @UniqueConstraint(columnNames = "region"))
public class WeatherList implements java.io.Serializable {

	// Fields

	private WeatherListId id;

	// Constructors

	/** default constructor */
	public WeatherList() {
	}

	/** full constructor */
	public WeatherList(WeatherListId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "region", column = @Column(name = "region", unique = true)),
			@AttributeOverride(name = "result", column = @Column(name = "result", length = 16777215)) })
	public WeatherListId getId() {
		return this.id;
	}

	public void setId(WeatherListId id) {
		this.id = id;
	}

}